<?php
include 'configs/config.php';

if(isset($_REQUEST['submit'])) {
		
	if($usuario->autentica($_REQUEST['login_usuario'], $_REQUEST['senha_usuario'])==1) {
		$_SESSION['logado'] = true;
		header('location: /SmartyProj/index.php');		
	}else
		unset($_SESSION['logado']);
}

$smarty->assign('mid','auth.tpl');
$smarty->display('layout.tpl');
?>